<%--
  Created by IntelliJ IDEA.
  User: 10330
  Date: 2021/7/1
  Time: 14:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@include file="/pages/common/header.jsp"%>

<c:forEach items="${hotGoodsList}" var="goods">
    <div class="col-md-3">
        <div class="thumbnail">
            <a href="${pageContext.request.contextPath}/goods?action=goodsDetail&goodsId=${goods.goods_id}">
                <img style="height: 200px" alt="${goods.goods_name}" src="${pageContext.request.contextPath}${goods.goods_pic}" />
            </a>

            <div class="caption text-center">
                <label>
                        ${goods.goods_name}
                </label>
                <p>
                    原价<span class="glyphicon glyphicon-yen" aria-hidden="true"></span>${goods.goods_price}
                    <span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
                </p>
                <p>
                    现售<span class="label label-pill label-info"><span class="glyphicon glyphicon-yen" aria-hidden="true"></span>${goods.goods_discount}</span>
                </p>
                <p>
                    共售出${goods.goods_sales}件
                </p>
                <p>
                    <a class="btn btn-primary" href="${pageContext.request.contextPath}/goods?action=goodsDetail&goodsId=${goods.goods_id}" >查看详情</a>

                </p>
            </div>
        </div>
    </div>
</c:forEach>

<%@include file="/pages/common/footer.jsp"%>